export default function base() {
	layui.use('jquery', function() {
		let $, jQuery;
		$ = jQuery = layui.jquery;

		$("#local-refrash").click(function() {
			let hash = location.hash;
			let arr = hash.split('/');
			console.log(hash);
			if(hash === '' || hash === '#/home/controller/') {
				location.reload();
			} else {
				$(".layui-show>div").load(`${arr[arr.length-2]}.html`);
				console.log(arr[arr.length-2])
			}
		})

	})
}